package com.oocl.admin_platform.dao.factory;



import com.oocl.admin_platform.dao.FailReasonDao;
import com.oocl.admin_platform.dao.ManagerDao;
import com.oocl.admin_platform.dao.MerchantDao;
import com.oocl.admin_platform.dao.impl.FailReasonDaoImpl;
import com.oocl.admin_platform.dao.impl.ManagerDaoImpl;
import com.oocl.admin_platform.dao.impl.MerchantDaoImpl;




public class DaoFactory {
	private static MerchantDao merchantDao;
	
	private static ManagerDao managerDao;

	private static FailReasonDao failReasonDao;
	
	
	public static MerchantDao getMerchantDaoInstance(){
		if (merchantDao==null) {
			merchantDao=new MerchantDaoImpl();
		}
		return merchantDao;
	}
	
	
	public static ManagerDao getManagerDaoInstance(){
		if (managerDao==null) {
			managerDao=new ManagerDaoImpl();
		}
		return managerDao;
	}
	
	public static FailReasonDao getFailReasonDaoInstance(){
		if (failReasonDao==null) {
			failReasonDao=new FailReasonDaoImpl();
		}
		return failReasonDao;
	}
	
	
	
}
